<table class="table table-striped table-bordered table-condensed"> <!-- cellspacing='0' is important, must stay -->

	<!-- Table Header -->
	<thead>
		<tr>
			<th>CREATE_DATE</th>
			<th>ORDER_NO</th>
			<th>ORDER_TYPE</th>
			<th>DELIVERY_DATE</th>
			<th>BILLING_DATE</th>
			<th>ORDER_REASON</th>
			<th>PO_NUMBER</th>
			<th>CUSTOMER_NO</th>
			<th>ITEM_NO</th>
			<th>MATERIAL_NO</th>
			<th>QUANTITY</th>
            <th>UNIT</th>
		</tr>
	</thead>
	<!-- Table Header -->
	
	<!-- Table Body -->
	<tbody>
<?
	if(!empty($dataList)){
	?>
		<?
		
		foreach($dataList as $in=>$val){
		?>
			<tr>
				<td><?php echo $val->CREATE_DATE?></td>
				<td><?php echo $val->ORDER_NO?></td>>
				<td><?php echo $val->ORDER_TYPE?></td>
				<td><?php echo $val->DELIVERY_DATE?></td>
				<td><?php echo $val->BILLING_DATE?></td>
				<td><?php echo $val->ORDER_REASON?></td>
				<td><?php echo $val->PO_NUMBER?></td>
				<td><?php echo $val->CUSTOMER_NO?></td>
				<td><?php echo $val->ITEM_NO?></td>
				<td><?php echo $val->MATERIAL_NO?></td>
                <td><?php echo $val->QUANTITY?></td>
                <td><?php echo $val->UNIT?></td>
			</tr>
		<?
		}
		?>
<?
	}else{
	?>
		<tr>
			<td colspan="12"><h2>ไม่พบข้อมูล</h2></td>
		</tr>
	<?
	}
	?>
	
	</tbody>
	
	<!-- Table Body -->

</table>